package com.tiny.mirror.service.product.application.convert;

import com.api.tiny.mirror.service.product.request.CheckAbilityLhcPlayRequest.LhcNumberRequest;
import com.tiny.mirror.service.product.support.strategy.lhc.dto.LhcNumberDTO;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * @Author: liujsh
 * @Description:
 * @Date: Create in 2023/10/26
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class AbilityLhcConvert {

  public static LhcNumberDTO convert(LhcNumberRequest request) {
    if (request == null) {
      return null;
    }
    LhcNumberDTO result = new LhcNumberDTO();
    result.setNum1(request.getNum1());
    result.setNum2(request.getNum2());
    result.setNum3(request.getNum3());
    result.setNum4(request.getNum4());
    result.setNum5(request.getNum5());
    result.setNum6(request.getNum6());
    result.setLuckyNum(request.getLuckyNum());
    return result;
  }
}
